<template>
	<view class="pay-page">
		<view class="address">
			<view class="icon">
				<image src="/static/address-icon.png"></image>
			</view>
			<view class="detail">
				<view class="top-line">
					<text class="name">小明</text>
					<text class="tel">18367165544</text>
				</view>
				<view class="bottom-line">湖南省长沙市天星区五一大道 316号德合园小区2栋2105</view>
			</view>
		</view>
		
		<image class="dashed-line" :src="imagesUrl.dashedLine"></image>
		<view class="goods">
			<image class="img"></image>
			<view class="detail">
				<view class="title two-line">
					<text class="num">10人团</text>
					苹果13PRO超值拼团挑战全网最低价颜色全超值拼团挑战全网最低价颜色全超值拼团挑战全网最低价颜色全超值拼团挑战全网最低价颜色全
				</view>
				<view class="price">
					<text class="now-price">¥6599.00</text>
					<text class="old-price">¥7700.00</text>
				</view>
			</view>
		</view>
		
		<view class="buy-info">
			<view class="line">
				<view class="left">购买数量：</view>
				<view class="right">1件</view>
			</view>
			<view class="line">
				<view class="left">付款金额：</view>
				<view class="right price">￥6599.00</view>
			</view>
		</view>
		
		<view class="pay-info">
			<view class="line">
				<view class="left">
					<image :src="imagesUrl.wechat"></image>
					<text>微信支付</text>
				</view>
				<view class="right"></view>
			</view>
			<view class="line">
				<view class="left">
					<image :src="imagesUrl.alipay"></image>
					<text>支付宝支付</text>
				</view>
				<view class="right">
					<image :src="imagesUrl.blackYes"></image>
				</view>
			</view>
		</view>
		<view class="buy-btn">立即支付</view>
	</view>
</template>

<script>
	import imagesUrl from '../../common/images.js'
	export default {
		data () {
			return {
				imagesUrl: imagesUrl.order
			}
		}
	}
</script>

<style lang="less" scoped>
@charset "utf-8";
	.pay-page {
		width: 100%;
		height: 100vh;
		background: #F8F8F8;
		.address {
			display: flex;
			align-items: center;
			padding: 40rpx 25rpx;
			box-sizing: border-box;
			.icon {
				width: 40rpx;
				height: 40rpx;
				margin-right: 30rpx;
				image {
					width: 40rpx;
					height: 40rpx;
				}
			}
			.detail {
				flex: 1;
				.top-line {
					.name {
						font-size: 30rpx;
						color: #000;
						font-weight: bold;
						font-family:MicrosoftYaHeiUI;
					}
					.tel {
						font-size: 28rpx;
						color: #333;
						margin-left: 40rpx;
					}
				}
				.bottom-line {
					font-family: "Microsoft YaHei UI";
					margin-top: 24rpx;
					color: #333;
					font-size: 28rpx;
				}
			}
		}
		.dashed-line {
			width: 100%;
			height: 4rpx;
			margin-bottom: 40rpx;
			display: block;
		}
		.goods {
			display: flex;
			width: 100%;
			padding: 0 20rpx;
			box-sizing: border-box;
			.img {
				width: 141rpx;
				height: 108rpx;
				margin-right:25rpx;
			}
			.detail {
				flex: 1;
				.title {
					font-size: 26rpx;
					color: #666;
					text {
						display: inline-block;
						vertical-align: top;
					}
					.num {
						background-color: #353743;
						color: #fff;
						font-size: 20rpx;
						padding: 4rpx 9rpx;
						margin-right: 9rpx;
						margin-top: 3rpx;
					}
				}
				.price {
					margin: 24rpx 0;
					.now-price {
						color: #FD8201;
						font-size: 34rpx;
						margin-right: 20rpx;
						font-family: SimHei;
					}
					.old-price {
						color: #ccc;
						font-size: 30rpx;
						text-decoration:line-through
					}
				}
			}
		}
		.buy-info {
			background-color: #fff;
			padding: 0 24rpx;
			box-sizing: border-box;
			.line + .line {
				border-top: 1px solid #eee;
			}
			.line {
				width:100%;
				height: 100rpx;
				line-height: 100rpx;
				display: flex;
				.left, .right {
					flex: 1;
					font-size: 28rpx;
				}
				.left {
					color: #999;
				}
				.right {
					text-align: right;
					color: #000;
					padding-right: 20rpx;
					&.price {
						color: #F70D0D;
					}
				}
			}
		}
		.pay-info {
			background-color: #fff;
			padding: 0 24rpx;
			box-sizing: border-box;
			margin-top: 40rpx;
			.line + .line {
				border-top: 1px solid #eee;
			}
			.line {
				width:100%;
				height: 100rpx;
				line-height: 100rpx;
				display: flex;
				.left, .right {
					flex: 1;
					font-size: 28rpx;
					color: #666;
				}
				.left {
					image, text {
						display: inline-block;
						vertical-align: middle;
					}
					image {
						width: 40rpx;
						height: 40rpx;
						margin-right:15rpx;
					}
				}
				.right {
					text-align: right;
					padding-right: 20rpx;
					image {
						width: 35rpx;
						height: 25rpx;
					}
				}
			}
			
		}
		.buy-btn {
			width: 700rpx;
			height: 100rpx;
			line-height: 100rpx;
			background: #EB342C;
			margin: 60rpx auto 0;
			text-align: center;
			color: #fff;
			font-size: 32rpx;
			border-radius: 5rpx;
			font-weight: 500;
		}
	}
</style>
